package com.example.com.common.utils;

public class TaskUtils {

    public static int changeTaskString(String value){

        if(TaskTypeEnum.ONSITEINQUIRY.getMsg().equals(value)){
            return TaskTypeEnum.ONSITEINQUIRY.getCode();
        }else if(TaskTypeEnum.OPERATIONFIND.getMsg().equals(value)){
            return TaskTypeEnum.OPERATIONFIND.getCode();
        }else if(TaskTypeEnum.QUALITYCONTROL.getMsg().equals(value)){
            return TaskTypeEnum.QUALITYCONTROL.getCode();
        }else if(TaskTypeEnum.EMERGENCYRESPONSE.getMsg().equals(value)){
            return TaskTypeEnum.EMERGENCYRESPONSE.getCode();
        }else if(TaskTypeEnum.SUPERVISIONENFORCEMENT.getMsg().equals(value)){
            return TaskTypeEnum.SUPERVISIONENFORCEMENT.getCode();
        }else{
            return TaskTypeEnum.OPERATIONFIND.getCode();
        }
    }
}
